# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=collectd-apk
pkgver=0.2.0
pkgrel=2
pkgdesc="Collectd plugin that collects information about APK packages"
url="https://github.com/jirutka/collectd-apk"
arch="all"
license="GPL-2.0-or-later"
depends="collectd>=5.12"
makedepends="
	apk-tools-dev
	collectd-dev
	json-c-dev
	"
source="https://github.com/jirutka/collectd-apk/archive/v$pkgver/collectd-apk-$pkgver.tar.gz"

build() {
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
f161c2d5abc055f58143531481d4b7d912e24581fe4fa9e38cf1e9e6c7b5f9370da89947c16f94f297f14042e915982331cef95bc2c17a3eb62df894049f574f  collectd-apk-0.2.0.tar.gz
"
